package com.clinic.drug.controller;

import com.clinic.api.drug.DrugControllerApi;
import com.clinic.framework.common.request.DrugQueryRequest;
import com.clinic.framework.common.response.QueryList;
import com.clinic.framework.common.response.ResponseResult;
import com.clinic.framework.common.response.ResponseValue;
import com.clinic.framework.domain.base.Drug;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/drug")
public class DrugController implements DrugControllerApi {
    @PostMapping("/add")
    public ResponseResult addDrug(@RequestBody Drug Drug) {
        return null;
    }

    @Override
    @PostMapping("/edit")
    public ResponseResult editDrug(@RequestBody Drug Drug) {
        return null;
    }

    @Override
    @DeleteMapping("/del/{id}")
    public ResponseResult delDrug(@PathVariable("id") String id) {
        return null;
    }

    @Override
    @GetMapping("/list/{page}/{size}")
    public QueryList<Drug> findDrugList(@PathVariable("page") String page, @PathVariable("size") String size, DrugQueryRequest dqr) {
        return null;
    }

    @GetMapping("/get/{id}")
    public ResponseValue<Drug> findDrugById(@PathVariable("id") String id) {
        return null;
    }
}
